package com.san.metadata.domain;

import java.util.Date;

import lombok.Data;

/**
 * 作业管理DO
 */
@Data
public class OperationJobDO {
	
	private Long jobId;
	/**
	 * 任务ID
	 */
	private Long operationId;

	/**
	 * 作业名称
	 */
	private String jobName;
	
	/**
	 * 作业类型 1-接口 2-数据同步 
	 */
	private int jobType;

	/**
	 * spring bean
	 */
	private String springBean;
	
	/**
	 * 方法名
	 */
	private String methodName;
	
	/**
	 * 技术元数据表
	 */
	private Long technicalTable;
	
	/**
	 * 企查查接口地址
	 */
	private String requestUrl;

	/**
	 * 任务描述
	 */
	private String description;
	
	/**
	 * 源表元数据类型 1-技术元数据 2-业务元数据 
	 */
	private int sourceMetaType;

	/**
	 * 源表ID
	 */
	private Long sourceTable;
	
	/**
	 * 目标元数据类型 1-技术元数据 2-业务元数据 
	 */
	private int targetMetaType;
	
	/**
	 * 目标表ID
	 */
	private Long targetTable;
	
	/**
	 * 列对应关系
	 */
	private String columnRelation;
	
	/**
	 * 优先级
	 */
	private Integer priority;
	
	/**
	 * 作业状态
	 */
	private int status;

	/**
	 * 新增操作员ID
	 */
	private long createUserId;

	/**
	 * 创建时间
	 */
	private Date createDate;

	/**
	 * 修改操作员ID
	 */
	private long updateUserId;

	/**
	 * 更新时间
	 */
	private Date updateDate;

	@Override
	public String toString() {
		return "OperationJobDO [jobId=" + jobId + ", operationId=" + operationId + ", jobName=" + jobName + ", jobType=" + jobType
				+ ", springBean=" + springBean + ", methodName=" + methodName + ", description=" + description
				+ ", sourceMetaType=" + sourceMetaType + ", sourceTable=" + sourceTable + ", targetMetaType="
				+ targetMetaType + ", targetTable=" + targetTable + ", columnRelation=" + columnRelation + ", priority="
				+ priority + ", status=" + status + ", createUserId=" + createUserId + ", createDate=" + createDate
				+ ", updateUserId=" + updateUserId + ", updateDate=" + updateDate + "]";
	}
}
